package com.cj.exceptionhandler.redisstart;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * springboot项目入口类?
 *
 * Application启动类必须要保证在包的根目录下?
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class Applicatiopn extends SpringBootServletInitializer {
    // @Autowired
    // RedisConfig redis;

    // 只能注入配置类，非配置类在此处不可引用
    public static void main(String[] args) {
        SpringApplication.run(Applicatiopn.class);
    }
}
